<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitUpdate100 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('stats_user', function (Blueprint $table) {
            
            $table->integer('all_pay_money_price')->unsigned()->default(0)->index()->comment('总支付人民币金额');
            $table->integer('all_pay_score_price')->unsigned()->default(0)->index()->comment('总支付积分金额');
            $table->integer('all_get_money_price')->unsigned()->default(0)->index()->comment('总获得的人民币价值');
            $table->integer('all_get_score_price')->unsigned()->default(0)->index()->comment('总获得的积分价值');
            
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
